import pvporcupine


porcupine = pvporcupine.create(
  access_key='F0s6SAVwvN4BG16hsQMOJm5DEY6mbMVpsWgInFl0MSx5TeRT3z7zNA==',
  keyword_paths=['D:\Program\gitProject\pas_robot\wake_word_models\porcupine_params_zh.pv'],
  model_path='D:\Program\gitProject\pas_robot\wake_word_models\ihao_zh_raspberry-pi_v3_0_0.ppn'
)


def get_next_audio_frame():
  pass


while True:
  audio_frame = get_next_audio_frame()
  keyword_index = porcupine.process(audio_frame)
  if keyword_index == 0:
      # detected `picovoice`
      print("detected `picovoice`")
  elif keyword_index == 1:
      # detected `bumblebee`
      print("detected `bumblebee`")
